﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        ItemBLL it = new ItemBLL();
        CollectionPager1.MaxPages = 10000;

        CollectionPager1.PageSize = 8; // số items hiển thị trên một trang

        CollectionPager1.DataSource = it.getAllItemCat();
        CollectionPager1.BindToControl = RepeaterAllItems;
        RepeaterAllItems.DataSource = CollectionPager1.DataSourcePaged;
        RepeaterAllItems.DataBind();
        
    }
}